from .base import MyBaseModelView


class UserCalendarModelView(MyBaseModelView):
    column_list = ("status", "user", "calendar", "successful_tasks", "tasks_sent")
    column_hide_backrefs = False

    form_excluded_columns = (
        "created_at",
        "updated_at",
    )

    column_labels = {
        "user": "Пользователь",
        "status": "Статус",
        "subscription": "Подписка",
        "calendar": "Календарь",
        "successful_tasks": "Успешных заданий",
        "tasks_sent": "Заданий отправлено",
        "check_tasks_time": "Время проверки заданий",
        "get_tasks_time": "Время отправки заданий",
    }
